import { useEffect, useState } from "react";
import "./index.less";
import { Table } from "antd";




function MyTable(props:any) {

  return (
    <div>
      <Table
          dataSource={props.dataSource}
          columns={props.columns}
          rowSelection={{ type: props.type }}
          scroll={{x:'max-content',y:390}}
      />
    </div>
  );
}

export default MyTable;